package com.fr.web;

import com.fr.report.TemplateWorkBook;
import com.fr.web.cache.ReportEntry;
import com.fr.web.cache.ReportManager;
import com.fr.web.cache.WorkBookTemplateDelegate;

public class TemplateReportlet extends Reportlet
{
  private String bookPath;

  public TemplateReportlet(String paramString)
  {
    this.bookPath = paramString;
  }

  public TemplateWorkBook createReport(ReportletRequest paramReportletRequest)
    throws ReportletException
  {
    ReportEntry localReportEntry = ReportManager.getInstance().getReportEntry(this.bookPath);
    return new WorkBookTemplateDelegate(localReportEntry);
  }
}